package com.icoo.order.order.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.icoo.order.order.mapper.ProductMapper;
import com.icoo.order.order.model.ProductDto;
import com.icoo.order.order.po.Product;
import com.icoo.order.order.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProductServiceImpl implements ProductService {

    @Autowired
    private ProductMapper productMapper;

    @Override
    public List<Product> findByIds(List<Integer> productIds) {
        return productMapper.selectProductByIds(productIds);
    }
}